
import React from "react"
import { Menu } from 'antd';
import { HashRouter as Router, Link, withRouter } from 'react-router-dom';
import {
  UserOutlined,
  VideoCameraOutlined,
} from '@ant-design/icons';

class Nav extends React.Component{
  constructor(){
    super()

    
  }
  



  render(){
    return(
      <div>
        <Router>
         <Menu theme="dark" mode="inline" defaultSelectedKeys={['4']}>
       <Menu.Item key="1" icon={<UserOutlined />}>
          <Link to="/home/users">用户管理</Link>
        </Menu.Item>
        <Menu.Item key="2"  icon={<VideoCameraOutlined />}>
          <Link to="/home/images">图片管理</Link>
        </Menu.Item>
      </Menu>
      </Router>
      </div>
    )
    
  }
  
  

}

export default withRouter(Nav)